package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.domian.channel.WeiBoVo;
import org.jsbd.boss.domian.channel.WeiboRetent;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

@Service("weiboRetentDao")
public class WeiboRetentDAOImpl extends CrackLogBaseDao implements IBatchExecutor<WeiboRetent> {

	@Override
	public void execute(List<WeiboRetent> records) {
		super.batchInsert("qy_weibo_retent.INSERT_RETENT", records);
	}

	/**
	 * 
	 * 获取微博留存执行量
	 * 
	 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
	 * @param weiBoVo
	 * @return
	 */
	public List<WeiBoVo> getWeiBoHandler(WeiBoVo weiBo) {
		return super.queryForList("qy_weibo_retent.GET_WEIBO_HANDLER", weiBo);
	}

	public WeiboRetent selectWeiboRetent(WeiboRetent weiboRetent) {
		return (WeiboRetent) super.queryForObject("qy_weibo_retent.SELECT_WEIBO_RETENT", weiboRetent);
	}

}
